package com.shf.controller;

import org.springframework.http.HttpStatus;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;

import javax.servlet.http.HttpSession;

/***
 * 用户登录控制层
 */
@Controller
@RequestMapping("/")
public class LoginUserController {

    @RequestMapping("loginUser")
    public String loginUser (){

        return "admin/index";
    }


//    @RequestMapping("/logout")
//    public String logout(HttpSession session){
//        session.invalidate();
//        System.out.println("logout执行了...");
//        return "/login";
//    }

    @RequestMapping("/myapp/forbidden")
    public String error403(){
        return "/403";
    }
}
